<style>
    /* .editorBox{
        height: 300px;
    }  */
    /* .layuimini-main {
        height: 675px;
    } */
    .btn {
            margin-top: 50px;
            margin-bottom: 50px;
        }
</style>

<div class="layuimini-container layui-anim layui-anim-upbit">
    <div class="layuimini-main">
        <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
            <legend style="font-size:medium;">查看动态新闻</legend>
        </fieldset>
        <div style="text-align:center">
            <input type="text" name="id" style="display: none;">
            <input type="text" name="entryPerson" style="display: none;">

         
            <div class="layui-input-inline">
                <label class="layui-form-label">标题:</label>
                <div class="layui-input-block">
                    <div class="layui-form-mid layui-word-aux" id="addDy_title"></div>
                </div>
            </div>
            <br>

            <div class="layui-input-inline">
                <div class="layui-input-inline">
                    <label class="layui-form-label">来源:</label>
                    <div class="layui-input-inline">
                        <div class="layui-form-mid layui-word-aux" id="addDy_source"></div>
                    </div>
                </div>
                <div class="layui-input-inline">
                        <label class="layui-form-label">录入人:</label>
                        <div class="layui-input-inline">
                            <div class="layui-form-mid layui-word-aux" id="entryPerson"></div>
                        </div>
                </div>
               
                <div class="layui-input-inline">
                    <label class="layui-form-label">发布日期:</label>
                    <div class="layui-input-inline">
                        <div class="layui-form-mid layui-word-aux" id="addDy_sendTime"></div>
                    </div>
                </div>
                <div class="layui-input-inline">
                    <label class="layui-form-label">更新日期:</label>
                    <div class="layui-input-inline">
                        <div class="layui-form-mid layui-word-aux" id="addDy_updateTime"></div>
                    </div>
                </div>
            </div>

        </div>    
         <div class="layui-input-inline">
                <div class="layui-form-mid layui-word-aux" id="text" style="width:1100px;min-height:320px;"></div>
        </div>
    </div>
</div>    
    <script>
        $(function () {
            var parent_json = parent.editData;
            //$("input[name ='entryPerson']").val(parent_json.entryPerson);   
            //document.getElementById('addDy_title').innerHTML = parent_json.title;
            $("input[name ='id']").val(parent_json.id);
            $("#addDy_title").html(parent_json.title);
            $("#addDy_source").html(parent_json.source);
            $("#addDy_sendTime").html(parent_json.sendTime);
            $("#addDy_updateTime").html(parent_json.updateTime); 
            $("#entryPerson").html(parent_json.entryPerson.split("_")[1]);
            $("#text").html(parent_json.text);
           
        });


        //form表单
        layui.form.render();

    
        function getImage(thisImg, path, parameter) {
            thisImg.src = config.server + "/" + path + "/" + parameter;
            thisImg.onerror = null;
        }

        function getFile(path, parameter) {
            var url = config.server + "/" + path + "/" + parameter;
            window.location.href = url;
        }
    </script>